<div class="">
    <div class="admin_nrtop">
        <div class="couriercompanycz">
            <div class="nui-toolbar-item">
                <div class="nui-btn ">
                    <a class="nui-btn-text" href="/admini/express/index"><span>&lt;&lt;</span>返回</a>
                </div>
            </div>                    
            <div class="nui-toolbar-item">
                <div class="nui-btn ">
                    <a class="nui-btn-text" href="/admini/express/vip/id/<?= $this->id; ?>">修改设置</a>
                </div>
                <div class="nui-btn ">
                    <a class="nui-btn-text" href="javascript:;" name='del'>删除</a>
                </div>
            </div>  
        </div>
    </div>
    <div class="addbox">
        <div class="addtop">
            <h1>联邦快递VIP价格设置</h1>
        </div>
        <div class="vipbjbox">
            <table>
                <tbody><tr>
                    <th class="vl">优惠项</th>
                    <th>高级会员</th>
                    <th>黄金会员</th>
                    <th>铂金会员</th>
                    <th>钻石会员</th>
                </tr>
                 <tr>
                    <td class="vl">首重</td>
                    <td> <?php echo $this->vip && $this->vip[0] ? $this->vip[0]->Advanced : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[0] ? $this->vip[0]->Gold : ''; ?>折     </td>
                    <td> <?php echo $this->vip && $this->vip[0] ? $this->vip[0]->Platinum : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[0] ? $this->vip[0]->Jewel : ''; ?>折    </td>
                </tr>
                <tr>
                    <td class="vl">续重</td>
                    <td> <?php echo $this->vip && $this->vip[1] ? $this->vip[1]->Advanced : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[1] ? $this->vip[1]->Gold : ''; ?>折     </td>
                    <td> <?php echo $this->vip && $this->vip[1] ? $this->vip[1]->Platinum : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[1] ? $this->vip[1]->Jewel : ''; ?>折    </td>
                </tr>
                <tr>
                    <td class="vl">按公斤计费</td>
                    <td> <?php echo $this->vip && $this->vip[2] ? $this->vip[2]->Advanced : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[2] ? $this->vip[2]->Gold : ''; ?>折     </td>
                    <td> <?php echo $this->vip && $this->vip[2] ? $this->vip[2]->Platinum : ''; ?>折 </td>
                    <td> <?php echo $this->vip && $this->vip[2] ? $this->vip[2]->Jewel : ''; ?>折    </td>
                </tr>
            </tbody></table>
        </div>
    </div>
    <div class="addbar">
        <ul>
            <li><a href="/admini/express/vip/id/<?= $this->id; ?>" class="ccbotton"><span>修改设置</span></a></li>
        </ul>
    </div>
</div>
<script>
    $(function(){
        //删除
        $('[name=del]').click(function(){
            if(confirm('确认删除?')){
                $.ajax({
                    url : '/admini/express/vipdel',
                    type: 'get',
                    dataType: 'json',
                    data: {
                        'id' : '<?= $this->id; ?>',
                    },
                    success: function(_d, _s) {
                        console.log(_d);
                        alert(_d.m);
                        if(_d.s <= 10){
                            location.href = '/admini/express/index';
                        }
                    }
                });
            }
        })

    })
</script>